package com.tentact.controller;

import com.tentact.Service.UpdateService;
import com.tentact.Service.addEmpService;
import com.tentact.pojo.T_User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value = "/up")
public class updateController {
  @Autowired
 private UpdateService updateService;
    @RequestMapping(value = "/date", method = RequestMethod.GET)
    @ResponseBody
    public Integer updateController(T_User t_user){
        //对象接受
      Integer tuser=  updateService.updateEmpinsert(t_user);

        return tuser;

    }
}
